import request from '@/utils/request'

// 查询耗材出库列表
export function listOrder(query) {
    return request({
        url: '/basic/order/list',
        method: 'get',
        params: query
    })
}

// 查询耗材出库详细
export function getOrder(id) {
    return request({
        url: '/basic/order/' + id,
        method: 'get'
    })
}

// 查询耗材出库详细
export function getOrderS(id) {
    return request({
        url: '/basic/order/order/' + id,
        method: 'get'
    })
}

// 新增耗材出库
export function addOrder(data) {
    return request({
        url: '/basic/order',
        method: 'post',
        data: data
    })
}

// 修改耗材出库
export function updateOrder(data) {
    return request({
        url: '/basic/order',
        method: 'put',
        data: data
    })
}

// 删除耗材出库
export function delOrder(id) {
    return request({
        url: '/basic/order/' + id,
        method: 'delete'
    })
}
